#ifndef PHONELOGINWIDGET_H
#define PHONELOGINWIDGET_H

#include <QWidget>
#include <QLineEdit>
#include <QLabel>
#include <QGridLayout>
#include <QPushButton>
#include "toast.h"
#include "model/datacenter.h"
#include "mainWidget.h"
#include "verifycodewidget.h"

class PhoneLoginWidget : public QWidget
{
    Q_OBJECT
public:
    explicit PhoneLoginWidget(bool isLoginMode,QWidget *parent = nullptr);
    void init(bool isLoginMode);
    void recoverWaitTime();


private:
    bool isLoginMode;
    QLabel* titleTag;
    QLineEdit* PhoneEidt;
    QLineEdit* verifyCodeEidt;
    QPushButton* sendVerifyBtn;
    QPushButton* submitBtn;
    QPushButton* switchModBtn;
    QPushButton* switchUserBtn;
    int waitTime;

signals:
};

#endif // PHONELOGINWIDGET_H
